#include<iostream>
#include<memory>
#include<vector>
#include<fstream>
#include<sstream>
#include<stdexcept>
#include"string.h"
using namespace std;
void practice_12_23();
void practice_12_24();
void practice_12_26();
int main()
{
	//practice_12_23();
	//practice_12_24();
	practice_12_26();
	return 0;
}
void practice_12_23()
{
	char *str=new char[20];
	strcpy(str,"zyl111ok");
	strcat(str,"zyl");
	cout<<str<<endl;
	delete []str;
	char *str1=new char[20];
	string s("zyl111ok");
	string s1("zyl");
	strcpy(str1,s.c_str());
	s1=str1+s1;
	strcpy(str1,s1.c_str());
	cout<<str1<<endl;
	delete []str1;
}
void practice_12_24()
{
	char *str=new char[10];
	gets(str);
	cout<<str<<endl;
}
void practice_12_26()
{
	string word;
	cin>>word;
	allocator<string> alloc;
	string  *const p=alloc.allocate(1);
	string *q=p;
	alloc.construct(q,word);
	cout<<*p<<endl;
	alloc.destroy(q);
}